<?phpnamespace app\service;class goods{    public static function list($params = [])    {        $total = \goodsModel::count();        $list = \goodsModel::limit(2)->get();        return ['total' => $total, 'list' => $list];    }}